import App from './App'

import { createSSRApp } from 'vue';
import cuCustom from '@/colorui/components/cu-custom.vue';
import * as Pinia from 'pinia';


//lodash js工具包
// import _ from '@/static/js/lodash';
import lodashCore from '@/uni_modules/iRainna-lodash/js_sdk/js/lodash.core.min.js';
//moment js日期工具包
import {dayuts} from '@/uni_modules/lime-dayuts';
import service from '@/service.js';
import { om } from '@/om.js';

import { CuColorList,ColorList } from '@/colorJs.js';
//版本数据
import versionData from '@/static/json/versiondata.json';

export function createApp() {
	但是
  const app = createSSRApp(App);
  app.component(cuCustom);
  app.use(Pinia.createPinia());
  app.config.productionTip = false;
  app.config.globalProperties.$lodashCore = lodashCore;
  app.config.globalProperties.$dayuts = dayuts;
  app.config.globalProperties.$serviceJs = service;
  app.config.globalProperties.$version = versionData[0].version;
  app.config.globalProperties.$om = om;
  app.config.globalProperties.$CuColorList = CuColorList;
  app.config.globalProperties.$ColorList = ColorList;
  
  return {
    app,
	Pinia
  }
}